package com.totem.customer.api;

import com.totem.base.model.PageVO;
import com.totem.base.model.Result;
import com.totem.customer.vo.*;
import com.totem.product.vo.ProductVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@Tag(name="ITFavoriteServiceApi", description="收藏信息服务")
public interface ITFavoriteServiceApi {
    @Operation(summary="更新收藏信息")
    @PostMapping("/favorite/update")
    @ResponseBody
    Result<Boolean> update(@RequestBody UpdateFavoriteVO vo);
    @Operation(summary="分页展示客户收藏列表")
    @PostMapping("/favorite/page")
    @ResponseBody
    Result<PageVO<ProductVO>> favoritePage(@RequestBody FavoritePageVO vo);
}
